package e2q.security.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * E2qSmAccessAction entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "e2q_sm_access_action")
public class E2qSmAccessAction extends e2q.web.orm.Persistent implements
		java.io.Serializable {

	// Fields

	private Long id;
	private E2qSmAccessResource e2qSmAccessResource;
	private Integer aactCode;
	private String aactName;
	private String aactActionId;
	private Short aactType;

	
	@Override
	public String toString() {
		return id.toString();
	}

	// Property accessors
	@Id
	@GeneratedValue(generator = "pk")
	@Column(name = "aactId")
	@GenericGenerator(name = "pk", strategy = "e2q.web.orm.IdGenerator")
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@ManyToOne
	@JoinColumn(name = "aactResourceId")
	public E2qSmAccessResource getE2qSmAccessResource() {
		return this.e2qSmAccessResource;
	}

	public void setE2qSmAccessResource(E2qSmAccessResource e2qSmAccessResource) {
		this.e2qSmAccessResource = e2qSmAccessResource;
	}

	@Column(name = "aactCode")
	public Integer getAactCode() {
		return this.aactCode;
	}

	public void setAactCode(Integer aactCode) {
		this.aactCode = aactCode;
	}

	@Column(name = "aactName")
	public String getAactName() {
		return this.aactName;
	}

	public void setAactName(String aactName) {
		this.aactName = aactName;
	}

	@Column(name = "aactActionId")
	public String getAactActionId() {
		return this.aactActionId;
	}

	public void setAactActionId(String aactActionId) {
		this.aactActionId = aactActionId;
	}

	@Column(name = "aactType")
	public Short getAactType() {
		return this.aactType;
	}

	public void setAactType(Short aactType) {
		this.aactType = aactType;
	}

}